Previous Book Contents Book Index Next

Inside Macintosh: /
QuickDraw 3D RAVE / QuickDraw 3D RAVE Reference
QuickDraw 3D RAVE Routines / Public Draw Context Methods


TQADrawTriGouraud

A drawing engine must define a method to draw Gouraud-shaded triangles.

typedef void (*TQADrawTriGouraud) ( 
                                   const TQADrawContext *drawContext, 
                                   const TQAVGouraud *v0, 
                                   const TQAVGouraud *v1, 
                                   const TQAVGouraud *v2, 
                                   unsigned long flags);
drawContext
A draw context.
v0
A Gouraud vertex.
v1
A Gouraud vertex.
v2
A Gouraud vertex.
flags
A set of triangle flags. See "Triangle Flags Masks," beginning on page 1-63 for a complete description of the available flags.
DESCRIPTION
Your TQADrawTriGouraud function should draw the Gouraud-shaded triangle determined by the three points specified by the v0, v1, and v2 parameters into the draw context specified by the drawContext parameter. Features of the triangle are determined by the flags parameter. Currently, this parameter is used to specify an orientation for the triangle.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
28 AUG 1996